<template>
  <van-nav-bar
      :title="title"
      left-arrow
      @click-left="$router.go(-1)"
      fixed
    >
      <template #right>
        <slot></slot>
      </template>
    </van-nav-bar>
</template>

<script setup>
import { defineProps } from 'vue'

defineProps({
  title: String
})
</script>

<style lang="scss" scoped>
::v-deep .van-nav-bar__content {
  .van-icon {
    color: #121826;
  }
  .van-nav-bar__title {
    font-weight: 400;
  }
}
</style>
